/*
 * element.cpp
 *
 *  Created on: 09 Nis 2012
 *      Author: hframe
 */

#include "element.h"

startnamespace( androidplus)
startnamespace(ui)

element::element() {
	parent=NULL;
	child=NULL;

}

element::~element() {

}

void element::render_to(surface *srfc){
	render(srfc);
	if(child!=NULL){
		child->parent=this;
		child->render_to(srfc);
	}
}


endnamespace(ui)
endnamespace(androidplus)
